package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 轮胎档案工作表
 * </p>
 *
 * @author LX
 * @since 2018-09-27
 */
@TableName("erp_tire_archives_work")
public class ErpTireArchivesWork extends Model<ErpTireArchivesWork> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 轮胎ID
     */
    @TableField("tire_id")
    private Integer tireId;
    /**
     * 工作 日期
     */
    @TableField("work_date")
    private Date workDate;
    /**
     * 工作 单号
     */
    @TableField("work_sheet_id")
    private String workSheetId;
    /**
     * 工作 服务单位
     */
    @TableField("work_service_sector")
    private String workServiceSector;
    /**
     * 胎位
     */
    @TableField("tire_location")
    private String tireLocation;
    /**
     * 工作 里程表数
     */
    @TableField("work_mileage")
    private Double workMileage;
    /**
     * 工作 项目
     */
    @TableField("work_project")
    private String workProject;
    /**
     * 工作 轮胎状态
     */
    @TableField("work_tire_state")
    private String workTireState;
    /**
     * 轮胎 费用合计
     */
    @TableField("tire_cost")
    private Double tireCost;
    /**
     * 轮胎状态
     */
    @TableField("tire_state")
    private String tireState;
    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 费用类型0采购用款1维修维护用款2销售
     */
    @TableField("cost_type")
    private Integer costType;
    /**
     * 是否计算里程0不计算1计算里程
     */
    @TableField("calculating_mileage")
    private Integer calculatingMileage;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTireId() {
        return tireId;
    }

    public void setTireId(Integer tireId) {
        this.tireId = tireId;
    }

    public Date getWorkDate() {
        return workDate;
    }

    public void setWorkDate(Date workDate) {
        this.workDate = workDate;
    }

    public String getWorkSheetId() {
        return workSheetId;
    }

    public void setWorkSheetId(String workSheetId) {
        this.workSheetId = workSheetId;
    }

    public String getWorkServiceSector() {
        return workServiceSector;
    }

    public void setWorkServiceSector(String workServiceSector) {
        this.workServiceSector = workServiceSector;
    }

    public String getTireLocation() {
        return tireLocation;
    }

    public void setTireLocation(String tireLocation) {
        this.tireLocation = tireLocation;
    }

    public Double getWorkMileage() {
        return workMileage;
    }

    public void setWorkMileage(Double workMileage) {
        this.workMileage = workMileage;
    }

    public String getWorkProject() {
        return workProject;
    }

    public void setWorkProject(String workProject) {
        this.workProject = workProject;
    }

    public String getWorkTireState() {
        return workTireState;
    }

    public void setWorkTireState(String workTireState) {
        this.workTireState = workTireState;
    }

    public Double getTireCost() {
        return tireCost;
    }

    public void setTireCost(Double tireCost) {
        this.tireCost = tireCost;
    }

    public String getTireState() {
        return tireState;
    }

    public void setTireState(String tireState) {
        this.tireState = tireState;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getCostType() {
        return costType;
    }

    public void setCostType(Integer costType) {
        this.costType = costType;
    }

    public Integer getCalculatingMileage() {
        return calculatingMileage;
    }

    public void setCalculatingMileage(Integer calculatingMileage) {
        this.calculatingMileage = calculatingMileage;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpTireArchivesWork{" +
        ", id=" + id +
        ", tireId=" + tireId +
        ", workDate=" + workDate +
        ", workSheetId=" + workSheetId +
        ", workServiceSector=" + workServiceSector +
        ", tireLocation=" + tireLocation +
        ", workMileage=" + workMileage +
        ", workProject=" + workProject +
        ", workTireState=" + workTireState +
        ", tireCost=" + tireCost +
        ", tireState=" + tireState +
        ", customerId=" + customerId +
        ", costType=" + costType +
        ", calculatingMileage=" + calculatingMileage +
        "}";
    }
}
